package org.comple.erp.remote.procurement;


import org.comple.erp.utils.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

public interface ProcurementRemote {
    @RequestMapping("getProcurementPageInfo")
    public AjaxResult getProcurementPageInfo(@RequestParam Map<String, Object> params);

    @RequestMapping("selectProcurementToWare")
    public AjaxResult selectProcurementToWare(@RequestParam Map<String, Object> params);

    @RequestMapping("updateProcurementOffAmount")
    public AjaxResult updateProcurementOffAmount(@RequestParam("procurement_id") String procurement_id, @RequestParam("current_written_off_amount") BigDecimal current_written_off_amount, @RequestParam("written_off_amount") BigDecimal written_off_amount);

    @RequestMapping("selectById")
    public AjaxResult selectById(@RequestParam("procurement_id") String procurement_id);

    @RequestMapping("updateProcurementDetailInspectedNum")
    public String updateProcurementDetail(@RequestParam("procurementDetail_id")int procurementDetail_id,@RequestParam("inspected_quantity")int inspected_quantity);

    @RequestMapping("updateProcurementMatching")
    public String updateProcurementMatching(@RequestParam("procurement_id")String procurement_id);

    @RequestMapping("selectByCodeAndCompanyCode")
    public String selectByCodeAndCompanyCode(@RequestParam("procurement_code")String procurement_code,@RequestParam("companyCode")String companyCode);
}
